﻿using System;
using System.Net;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Airport
{
    [DataContract]
    [KnownType(typeof(Node))]
    public class Taxiway : Surface
    {
        public Taxiway() 
            : base() 
        { 
        }

        public Taxiway(int id, string name, int maxWeight, int length, int width, int elevation)
            : base(id, name, maxWeight, length, width, elevation)
        {
        }

        // TESTING
        private int _taxiwayID;
        public int TaxiwayID
        {
            get
            {
                return _taxiwayID;
            }

            set
            {
                if (_taxiwayID != value)
                {
                    _taxiwayID = value;
                }
            }
        }

        public void AddNode(Node node)
        {
            Nodes.Add(node);
        }
    }
}
